package com.cloud.api.domain.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.io.Serializable;
@Getter
@Setter
@Accessors(chain = true)
@Schema(name = "SystemRoleRequest")
public class SystemRoleRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId("role_id")
    private String roleId;

    @Schema(description = "备注")
    @TableField("data_scope")
    private Integer dataScope;

    @Schema(description = "启用/禁用")
    @TableField("enable")
    private Integer enable;

    @Schema(description = "角色名")
    @NotEmpty(message = "角色名不能为空")
    @Size(max = 50, message = "限制50位字符")
    private String roleName;

    @Schema(description = "备注")
    @Size(max = 150, message = "限制150位字符")
    private String notes;

    @Schema(description = "组织机构")
    private String deptIds;

}
